﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel;
using System;

namespace ASPItalia.ModelVirtualCasting.BackOffice.ObjectModel
{
	[MetadataType(typeof(NewsMetadata))]
	public partial class News
	{
	}

	public class NewsMetadata
	{
		[ScaffoldColumn(false)] 
		[DisplayName("NewsID")]
		public int NewsID { get; set; }

		[DisplayName("Data inserimento")]
		public DateTime NewsDate { get; set; }

		[DisplayName("Data pubblicazione")]
		public DateTime PublicationDate { get; set; }

		[DisplayName("Titolo")]
		public string NewsTitle { get; set; }

		[DisplayName("Pubblicato")]
		public bool IsPublished { get; set; }

		[DisplayName("Testo")]
		[UIHint("RichText")]
		public string NewsText { get; set; }

	}
}